XyzDataSeries

StockSharp.Xaml.Charting.Model.DataSeries

Provides a generic to hold X,Y,Z values. Used as a data-source for the , if this DataSeries is assigned to any other X-Y type, then the X-Y values will be rendered (Z ignored).

继承自: DataSeries<T, T>

实现: IXyzDataSeries<T, T, T>, IDataSeries<T, T>, IDataSeries, ISuspendable, IXyzDataSeries

构造函数

XyzDataSeries()

Initializes a new instance of the XyzDataSeries class.

属性

DataSeriesType : DataSeriesType

Gets the DataSeriesType for this DataSeries

HasValues : bool

Gets whether the Data Series has values (is not empty)

StockSharp#Xaml#Charting#Model#DataSeries#IXyzDataSeries#ZValues

Gets the Z Values as a list of IComparable

ZValues : IList<T>

Gets the Z values

方法

Append(IEnumerable<T>, IEnumerable<T>, IEnumerable<T>)

Appends a collection of X, Y0 and Y1 points to the series, automatically triggering a redraw

x
The X-values
y
The Y-values
z
The Z-values
Append(T, T, T)

Appends a single X, Y0, Y1 point to the series, automatically triggering a redraw

x
The X-value
y
The Y-value
z
The Z-value
Append(IEnumerable<T>, IEnumerable<T>[])

Appends a list of X, Y points to the series

x
The list of X points
yValues
Lists of Y points (depends on series type)
Append(T, T[])

Appends an X, Y point to the series

x
The X Value
yValues
The Y Values (depends on series type)
ClearColumns()

When overridden in a derived class, clears all columns in the Data Series

Clone() : IDataSeries<T, T>

Creates a deep copy of a DataSeries

GetYMaxAt(int, T) : T

When overriden in a derived class, gets the Max(existingYMax, currentMax), where currentMax is the maximum at the specified index

index
The index to the underlying dataset
existingYMax
The existing maximum

返回值: The new YMax, which is the Min(existingYMax, currentMax)

GetYMinAt(int, T) : T

When overriden in a derived class, gets the Min(existingYMin, currentMin), where currentMin is the minimum at the specified index

index
The index to the underlying dataset
existingYMin
The existing minimum

返回值: The new YMin, which is the Min(existingYMin, currentMin)

Insert(int, T, T, T)

Inserts an X, Y0, Y1 point at the specified index. Automatically triggers a redraw

index
The index to insert at
x
The X-value
y
The Y-value
z
The Z-value
InsertRange(int, IEnumerable<T>, IEnumerable<T>, IEnumerable<T>)

Inserts a collection of X, Y0 and Y1 points at the specified index, automatically triggering a redraw

startIndex
The index to insert at
x
The X-values
y
The Y-values
z
The Z-values
RemoveAt(int)

Removes the X,Y values at the specified index

index
The index to remove at
RemoveRange(int, int)

Removes a range of points starting from the specified index

startIndex
Starting index of the range of elements to remove
count
The number of elements to remove
ToHitTestInfo(int) : HitTestInfo

When overridden in a derived class, returns a HitTestInfo struct containing data about the data-point at the specified index

index
The index to the DataSeries

返回值: The HitTestInfo

ToPointSeries(ResamplingMode, IndexRange, int, bool, bool?, IRange, IPointResamplerFactory, object) : IPointSeries

Converts the default YValues to an IPointSeries which is used to render XY series

resamplingMode
The desired ResamplingMode
pointRange
The integer Indices range in the parent data-set
viewportWidth
The current width of the viewport
isCategoryAxis
If true, uses the indices to form the resampled X-values, else uses the X-Values themselves
dataIsDisplayedAs2D
If true, then data is presented as a scatter series without relationship between the points, e.g. not a line series
visibleXRange
The XAxis VisibleRange at the time of resampling
factory
The IPointResamplerFactory Instance
pointSeriesArg
Additional parameter to the point series.

返回值: A IPointSeries which is used to render XY series

Update(T, T, T, int)

Updates (overwrites) the Y0, Y1 values at the specified X-value. Automatically triggers a redraw

x
The X-value
y
The Y-value
z
The Z-value
shift